package com.ethannhu.todaynews.component.input

import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.ixuea.courses.mymusic.component.input.InputIdentityViewModel

class InputIdentityViewModelFactory(private val style: Int) : ViewModelProvider.Factory {
    override fun <T : ViewModel> create(modelClass: Class<T>): T {
        if (modelClass.isAssignableFrom(InputIdentityViewModel::class.java)) {
            return InputIdentityViewModel(style) as T
        }
        throw IllegalArgumentException("Unknown ViewModel class")
    }
}